function [metric]=clustering_metric(t,c)
k=size(t,2);

for i=1:k
    for j=1:k
        sim(i,j)=(size(intersect(t{i},c{j}),2)*2) / (size(t{i},2)+size(c{j},2));
    end
end

metric=0;
for i=1:k
    metric=metric+max(sim(i,:));
end
metric=metric / k;